package by.euanpa.android.grodnobusstop;

import android.app.Application;
import by.euanpa.android.grodnobusstop.location.LocationHelper;

public class CustomApplication extends Application {

	private LocationHelper locationHelper;

	@Override
	public void onCreate() {
		locationHelper = new LocationHelper(this);
		super.onCreate();
	}

	@Override
	public Object getSystemService(String name) {
		if (name.equals(LocationHelper.SERVICE_NAME)) {
			return locationHelper;
		}
		return super.getSystemService(name);
	}
}
